<?php
include 'server/sso.php';
$token = $_COOKIE['token'];
if ($token) {
    $ssoLogin = new SSO();
    $verifiResult = $ssoLogin->verify($token);
    if ($verifiResult['code']==0) {
        header('location:http://localhost:86/login.html');
        exit();
    } else {
        echo "您已自动登陆!";
    }
    unset($ssoLogin);
} else {
    header('location:http://localhost:86/login.html');
    exit();
}
